package com.magicmovie.service;

import com.magicmovie.entity.IndexMovie;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public interface IndexMovieService {
    @RequestMapping(value = "/indexMovie/deleteByPrimaryKey", method = RequestMethod.GET)
    int deleteByPrimaryKey(Integer id);

    @RequestMapping(value = "/indexMovie/insert", method = RequestMethod.POST)
    int insert(@RequestBody IndexMovie record);

    @RequestMapping(value = "/indexMovie/selectByPrimaryKey", method = RequestMethod.GET)
    IndexMovie selectByPrimaryKey(Integer id);

    @RequestMapping(value = "/indexMovie/selectByParams", method = RequestMethod.POST)
    List<Map<String,Object>> selectByParams(@RequestBody Map<String, Object> params);

    @RequestMapping(value = "/indexMovie/updateByPrimaryKey", method = RequestMethod.POST)
    int updateByPrimaryKey(@RequestBody IndexMovie record);
}
